import 'package:dmz/business/home/controller/run_message_controller.dart';
import 'package:dmz/business/home/widgets/run_message_widgets.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class RunMessageLocusWidget extends StatelessWidget {
  const RunMessageLocusWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return GetBuilder<RunMessageController>(
        id: 'Locus',
        builder: (controller) {
          return Column(children: [
            RunMessageWidgets.selectDateTopWidget(
                controller.dateStr, controller.selectDate),
            Expanded(
                child: RunMessageWidgets.locusListWidget(
                    controller.locusPageData, controller.listClickLocus))
          ]);
        });
  }
}
